unit F_m;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, 
  Dialogs, StdCtrls, ExtCtrls;

type
  TFrame1 = class(TFrame)
    Panel1: TPanel;
    LAB_FM_MINGCHENG: TLabel;
    Label2: TLabel;
    ED_FM_SHULIANG: TEdit;
    Button1: TButton;
    LAB_FM_CHENGBENX: TLabel;
    LAB_FM_CHENGBENA: TLabel;
    Label5: TLabel;
    LAB_FM_LEIXING: TLabel;
    procedure Button1Click(Sender: TObject);
    procedure ED_FM_SHULIANGChange(Sender: TObject);
  private
    { Private declarations }
  public

    { Public declarations }
  end;


implementation

{$R *.dfm}
uses zhuangji;


procedure TFrame1.Button1Click(Sender: TObject);
VAR
tid:string;
begin
DeleteArrItem(FM,strtoint(label5.Caption));
  ( Sender as Tbutton ).Parent.Parent.Destroy;

end;

procedure TFrame1.ED_FM_SHULIANGChange(Sender: TObject);
begin
  LAB_FM_CHENGBENX.Caption:=floattostr(strtofloat(LAB_FM_CHENGBENA.Caption)*strtoint(ED_FM_SHULIANG.Text));;
end;

end.
